import { defineStore } from "pinia";

export const useUserStore = defineStore("user", {
    state: () => {
        return {
            user: {}
        }
    },
    actions: {
        setUser(user) {
            this.user = user;
        },
        getUser() {
            return this.user;
        }
    },
    persist: {
        enabled: true,
    }
});
